import api from "../api";
import { getMenuPath } from "../utils/index";
export const AuthLoader = async () => {
  const { menuList, buttonList } = await api.getPermissionList();
  const menuPathList = getMenuPath(menuList);
  return {
    menuList,
    menuPathList,
    buttonList,
  };
};
